<!----start-header---->
<div class="header" id="home">
    <div class="container">
        <div class="navigation">
            <span class="menu headerNav"></span>
            <ul class="navig headerIg">
                <li><a href="/">首页</a><span> </span></li>
                <li><a href="/blog" id="headerBlogSpan">博客</a><span> </span></li>
                <li><a href="/tweets">动弹</a><span> </span></li>
                <li><a href="/community">社区</a><span> </span></li>
                <li><a href="/tool">工具</a><span> </span></li>
                <li><a href="/<#if user??>m<#else >login</#if>" id="frontLogin"><#if user??>我的<#else >登录</#if></a><span> </span></li>
            </ul>
        </div>
        <!-- script-for-menu -->
        <script>
            $("span.headerNav").click(function(){
                $(" ul.headerIg").slideToggle("slow" , function(){
                });
            });
            var pathname = window.location.pathname;
            $(".navigation>ul.headerIg>li").each(function(){
                var thisUrl = $(this).children().attr("href") ;
                if(thisUrl == pathname){
                    $(this).children().addClass("active");
                }
            })
        </script>
        <!-- script-for-menu -->
    </div>
</div>
<!----end-header---->